
typedef struct {
	char *name;
	char *addr;
	int port;
	int queuenum;
	int framelen;
	int portmode;
	void (*callback)(int serverId,int status);
}VIM_RTSP_CFG;

//MPI to user
int VIM_SendStreamToBuf(int serverId, unsigned char *data, int len);

int VIM_RtspServerInit(int serverId ,VIM_RTSP_CFG *ServerCofig);

void VIM_RtspServerUninit(int serverId);

int VIM_RtspClientInit(int clientId, const char* host, int port, const char* url, int queuenum,int framelen,int istcp);

void VIM_RtspClientUninit(int clientId);

int VIM_RtspClientGetStream(int client, unsigned char **data,int *len);

int VIM_RtspClientRealeaseStream(int clientId, int index);
